package com.itheima.article.mapper;

import com.itheima.article.pojo.ApArticle;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.common.pojo.PageRequestDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 文章信息表，存储已发布的文章 Mapper 接口
 * </p>
 *
 * @author czh
 * @since 2021-08-20
 */
public interface ApArticleMapper extends BaseMapper<ApArticle> {

    Long findCount(@Param(value = "channelId") Integer channelId);

    List<ApArticle> findList(PageRequestDto<ApArticle> dto);
}
